<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="container">

	<div id="header-wrap">
		<div id="header">
			<div class="box box-masthead">
				<?php $tag = (is_home()) ? 'h1' : 'p'; ?>
				<<?php echo $tag; ?> class="title">
					<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a>
				</<?php echo $tag; ?>>
				<p class="description"><?php bloginfo('description'); ?></p>
			</div> <!-- .box-masthead -->
			<div class="box box-socialnet">
				<h3 class="title">Social Network Badges</h3>
				<?php padd_theme_widget_socialnet(); ?>
			</div> <!-- .box-socialnet -->
			<div id="menubar" class="box box-mainmenu">
				<h3 class="title">Main Menu</h3>
				<?php
					wp_nav_menu(array(
						'theme_location' => 'main',
						'container' => null,
					));
				?>
			</div> <!-- #menubar -->
			<div class="clear"></div>
		</div> <!-- #header -->
	</div> <!-- #header-wrap -->

	<?php if (is_home()) : ?>
	<div id="hometop-wrap">
		<div id="hometop">

			<div class="bar bar-1">
			<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home 1')) :
					add_filter('excerpt_length','padd_theme_hook_excerpt_pages_length');
					padd_theme_pagebox_special(Padd_Theme_Option::get('post_1_page_id',1),'1-page', 1);
					remove_filter('excerpt_length','padd_theme_hook_excerpt_pages_length');
				endif;
			?>
			</div>
			<div class="bar bar-2">
			<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home 2')) :
					add_filter('excerpt_length','padd_theme_hook_excerpt_pages_length');
					padd_theme_pagebox_special(Padd_Theme_Option::get('post_2_page_id',1),'1-page', 2);
					remove_filter('excerpt_length','padd_theme_hook_excerpt_pages_length');
				endif;
			?>
			</div>
			<div class="bar bar-3">
			<?php
				if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home 3')) :
					add_filter('excerpt_length','padd_theme_hook_excerpt_pages_length');
					padd_theme_pagebox_special(Padd_Theme_Option::get('post_3_page_id',1),'1-page', 3);
					remove_filter('excerpt_length','padd_theme_hook_excerpt_pages_length');
				endif;
			?>
			
			
			</div>
			<div class="clear"></div>

		</div> <!-- #hometop -->
	</div> <!-- #hometop-wrap -->
	<?php endif; ?>

	<div id="middle-wrap">
		<div id="middle">